﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using WoChu.CF.Base;
using WoChu.RfClient.Entity;

namespace WoChu.RfClient.Duty
{
    [ServiceName(Name = "Duty")]
    public interface IDuty
    {
        [Mapping(MethodUrl = "GetPDAWarehouse?warehouseDate={0}")]
        ResultModel<List<WarehouseInfo>> GetPDAWarehouse(string warehouseDate);

        //[Mapping(MethodUrl = "UpdatePDAWarehouseState/{0}/{1}")]
        [Mapping(MethodUrl = "UpdatePDAWarehouseState?warehouseDate={0}&userID={1}")]
        int UpdatePDAWarehouseState(string warehouseDate, string userID);

        [Mapping(MethodUrl = "UpdatePDAWarehouseQty?userID={0}")]
        ResultModel<int> UpdatePDAWarehouseQty(string userID, List<WarehouseInfo> lstWarehouse);

        [Mapping(MethodUrl = "GetPDAWarehouseName?userID={0}")]
        ResultModel<List<string>> GetPDAWarehouseName(string userID);

        [Mapping(MethodUrl = "GetPDAPickBatchNo?userID={0}")]
        ResultModel<List<string>> GetPDAPickBatchNo(string userID);

        [Mapping(MethodUrl = "GetPDAPickInfo?batchNo={0}&warehouseName={1}&userID={2}")]
        ResultModel<PickInfo> GetPDAPickInfo(string batchNo, string warehouseName, string userID);

        [Mapping(MethodUrl = "GetPDAPickItemInfo?pickID={0}")]
        ResultModel<List<PickItemInfo>> GetPDAPickItemInfo(string pickID);

        [Mapping(MethodUrl = "SubmitPDAPick?pickID={0}&batchDate={1}&state={2}&userID={3}")]
        ResultModel<bool> SubmitPDAPick(string pickID, string batchDate, string state, string userID, List<PickItemInfo> lstPickItem);

        [Mapping(MethodUrl = "SavePDAPick?userID={0}")]
        ResultModel<bool> SavePDAPick(string userID, List<PickItemInfo> lstPickItem);


    }
}
